<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title> - 库房</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="__PUBLIC__/admin/favicon.ico">
    <link href="__PUBLIC__/admin/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/admin/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/admin/css/animate.css" rel="stylesheet">
    <link href="__PUBLIC__/admin/css/style.css?v=4.1.0" rel="stylesheet">
    <style>
        .table-actions {
            margin-bottom: 10px;
            padding: 0px;
        }
    </style>

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeIn">
    <div class="row">
        <div class="tabs-container">
            <ul class="nav nav-tabs">
                <li class="active">
                    <a data-toggle="tab" href="{:URL('')}" aria-expanded="true">出库</a>
                </li>
                <li class="">
                    <a data-toggle="tab" href="#tab-3" aria-expanded="false">归还</a>
                </li>
                <li class="">
                    <a data-toggle="tab" href="#tab-9" aria-expanded="false">出入库明细</a>
                </li>
            </ul>
            <div class="tab-content">
                <!--出库-->
                <div class="panel-body">
                    <form action="{:url('kucun/storehouse')}" method="post" name="" enctype="multipart/form-data">
                        <div class="well form-inline panel-well">
                            合同号：
                            <input class="form-control" type="text" name="num" style="width: 120px;" value="">
                            <button type="submit" class="btn btn-primary">搜索</button>
                            <a href="#" class="btn btn-danger">清空</a>
                        </div>

                        <table class="table table-hover table-bordered table-list">
                            <thead>
                            <tr>
                                <th style="text-align:center;width: 3%"></th>
                                <th style="text-align:center;width:10%">合同号</th>
                                <th style="text-align:center;width:8%">交件人</th>
                                <th style="text-align:center;width:8%">图录号</th>
                                <th style="text-align:center;width:10%">原因</th>
                                <th style="text-align:center;width:10%">状态</th>
                                <th style="text-align:center;width:10%">库房</th>
                                <th style="text-align:center;width:10%">创建日期</th>
                                <th style="text-align:center;width:10%">操作</th>
                            </tr>
                            </thead>
                            </tbody>

                            <tr>
                                <?php echo isset($list['num']) ? $list['num'] : ''; ?>
                                <td style="text-align:center;">1</td>
                                <td style="text-align:center;">{$list.num??''}</td>
                                <td style="text-align:center;">{$list.user??''}</td>
                                <td style="text-align:center;">{$list.card??''}</td>
                                <td style="text-align:center;"></td>
                                <td style="text-align:center;">{$list1.state??''}</td>
                                <td style="text-align:center;">上海</td>
                                <td style="text-align:center;"></td>
                                <td style="text-align:center;"><a
                                        href="{:URL('kucun/outcollection',array('num'=>(isset($list.num)?$list.num:'')))}">出库</a>
                                </td>
                            </tr>
                            <!-- 没有数据显示 -->
                            <tr>
                                <td colspan="11" class="text-center">没有相关数据!</td>
                            </tr>
                            </tbody>
                        </table>
                    </form>
                </div>

                <!--<div id="tab-1" class="tab-pane active">
                    <div class="panel-body">
                        <form action="{:url('kucun/storehouse')}" method="post" name="" enctype="multipart/form-data">
                            <div class="well form-inline panel-well">
                                合同号：
                                <input class="form-control" type="text" name="num" style="width: 120px;" value="">
                                <button type="submit" class="btn btn-primary">搜索</button>
                                &lt;!&ndash;<a href="#" class="btn btn-danger">清空</a>&ndash;&gt;
                            </div>

                            <table class="table table-hover table-bordered table-list">
                                <thead>
                                <tr>
                                    <th style="text-align:center;width: 3%"></th>
                                    <th style="text-align:center;width:10%">合同号</th>
                                    <th style="text-align:center;width:8%">交件人</th>
                                    <th style="text-align:center;width:8%">图录号</th>
                                    <th style="text-align:center;width:10%">原因</th>
                                    <th style="text-align:center;width:10%">状态</th>
                                    <th style="text-align:center;width:10%">库房</th>
                                    <th style="text-align:center;width:10%">创建日期</th>
                                    <th style="text-align:center;width:10%">操作</th>
                                </tr>
                                </thead>
                                </tbody>
                                <tr>
                                    <?php echo isset($list['num']) ? $list['num'] : ''; ?>
                                    <td style="text-align:center;">1</td>
                                    <td style="text-align:center;">{$list.num??''}</td>
                                    <td style="text-align:center;">{$list.user??''}</td>
                                    <td style="text-align:center;">{$list.card??''}</td>
                                    <td style="text-align:center;"></td>
                                    <td style="text-align:center;">{$list1.state??''}</td>
                                    <td style="text-align:center;">上海</td>
                                    <td style="text-align:center;"></td>
                                    <td style="text-align:center;"><a href="{:URL('kucun/outcollection',array('num'=>(isset($list.num)?$list.num:'')))}">出库</a></td>
                                </tr>
                                &lt;!&ndash; 没有数据显示 &ndash;&gt;
                                <tr>
                                    <td colspan="11" class="text-center">没有相关数据!</td>
                                </tr>
                                </tbody>
                            </table>
                        </form>
                    </div>
                </div>-->
                <!--出库end-->
            </div>
        </div>
    </div>
</div>

<!-- 全局js -->
<script src="__PUBLIC__/admin/js/jquery.min.js?v=2.1.4"></script>
<script src="__PUBLIC__/admin/js/bootstrap.min.js?v=3.3.6"></script>

<!-- 自定义js -->
<script src="__PUBLIC__/admin/js/content.js?v=1.0.0"></script>
<!-- layerDate plugin javascript -->
<script src="__PUBLIC__/admin/js/plugins/layer/laydate/laydate.js"></script>
</body>

</html>
<script>
    //日期范围限制
    var start = {
        elem: '#start',
        format: 'YYYY/MM/DD hh:mm:ss',
        min: laydate.now(), //设定最小日期为当前日期
        max: '2099-06-16 23:59:59', //最大日期
        istime: true,
        istoday: false,
        choose: function (datas) {
            end.min = datas; //开始日选好后，重置结束日的最小日期
            end.start = datas //将结束日的初始值设定为开始日
        }
    };
    var end = {
        elem: '#end',
        format: 'YYYY/MM/DD hh:mm:ss',
        min: laydate.now(),
        max: '2099-06-16 23:59:59',
        istime: true,
        istoday: false,
        choose: function (datas) {
            start.max = datas; //结束日选好后，重置开始日的最大日期
        }
    };
    laydate(start);
    laydate(end);


    //日期范围限制001
    var start01 = {
        elem: '#start01',
        format: 'YYYY/MM/DD hh:mm:ss',
        min: laydate.now(), //设定最小日期为当前日期
        max: '2099-06-16 23:59:59', //最大日期
        istime: true,
        istoday: false,
        choose: function (datas) {
            end.min = datas; //开始日选好后，重置结束日的最小日期
            end.start = datas //将结束日的初始值设定为开始日
        }
    };
    var end01 = {
        elem: '#end01',
        format: 'YYYY/MM/DD hh:mm:ss',
        min: laydate.now(),
        max: '2099-06-16 23:59:59',
        istime: true,
        istoday: false,
        choose: function (datas) {
            start.max = datas; //结束日选好后，重置开始日的最大日期
        }
    };
    laydate(start01);
    laydate(end01);

    //日期范围限制002
    var start02 = {
        elem: '#start02',
        format: 'YYYY/MM/DD hh:mm:ss',
        min: laydate.now(), //设定最小日期为当前日期
        max: '2099-06-16 23:59:59', //最大日期
        istime: true,
        istoday: false,
        choose: function (datas) {
            end.min = datas; //开始日选好后，重置结束日的最小日期
            end.start = datas //将结束日的初始值设定为开始日
        }
    };
    var end02 = {
        elem: '#end02',
        format: 'YYYY/MM/DD hh:mm:ss',
        min: laydate.now(),
        max: '2099-06-16 23:59:59',
        istime: true,
        istoday: false,
        choose: function (datas) {
            start.max = datas; //结束日选好后，重置开始日的最大日期
        }
    };
    laydate(start02);
    laydate(end02);

    //日期范围限制003
    var start03 = {
        elem: '#start03',
        format: 'YYYY/MM/DD hh:mm:ss',
        min: laydate.now(), //设定最小日期为当前日期
        max: '2099-06-16 23:59:59', //最大日期
        istime: true,
        istoday: false,
        choose: function (datas) {
            end.min = datas; //开始日选好后，重置结束日的最小日期
            end.start = datas //将结束日的初始值设定为开始日
        }
    };
    var end03 = {
        elem: '#end03',
        format: 'YYYY/MM/DD hh:mm:ss',
        min: laydate.now(),
        max: '2099-06-16 23:59:59',
        istime: true,
        istoday: false,
        choose: function (datas) {
            start.max = datas; //结束日选好后，重置开始日的最大日期
        }
    };
    laydate(start03);
    laydate(end03);
</script>